package com.itheima.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @RequestMapping(value = "/hi",method = RequestMethod.GET)
    public String hi(@RequestParam(value = "id") String id){
        String mid = "[12:郭良浠:A31]";
        return "Hello World, I'm from hello provider!"+mid+id;
    }
    @RequestMapping(value = "/hi1",method = RequestMethod.GET)
    public String hi1(@RequestParam(value = "name") String name){
        String mid = "[12:郭良浠:A31]";
        return "Hello World, I'm from hello provider!"+mid+name;
    }
    @RequestMapping(value = "/hi2",method = RequestMethod.GET)
    public String hi2(@RequestParam(value = "age") String age){
        String mid = "[12:郭良浠:A31]";
        return "Hello World, I'm from hello provider!"+mid+age;
    }
}
